package model

type Hospital struct {
	Id                int    `json:"id",gorm:"primary_key;AUTO_INCREMENT"`
	CreateTime        string `json:"create_time"`
	ModifyTime        string `json:"modify_time"`
	CreatedTime        string `json:"created_time"`
	Status            int    `json:"status"`
	Deleted            int    `json:"deleted"`
	Name              string `json:"name","type:varchar(128)"`
	Alias             string `json:"alias","type:varchar(128)"`
	Nature            string `json:"nature","type:varchar(64)"`
	Property          string `json:"property","type:varchar(64)"`
	Grade             string `json:"grade","type:varchar(64)"`
	Tel               string `json:"tel","type:varchar(32)"`
	Website           string `json:"website","type:varchar(255)""`
	Address           string `json:"address","type:varchar(128)"`
	FaxNo             string `json:"faxNo","type:varchar(32)"`
	Email             string `json:"email","type:varchar(32)"`
	PostCode          string `json:"post_code","type:varchar(32)"`
	Dean              string `json:"dean","type:varchar(32)"`
	BedNumber         string `json:"bed_number","type:int(5)"`
	DepartmentNumber  string `json:"department_number","type:int(5)"`
	ClinicsNumber     int `json:"clinics_number","type:int(5)"`
	Province          string `json:"province","type:varchar(32)"`
	City              string `json:"city","type:varchar(32)"`
	District          string `json:"district","type:varchar(32)"`
	IsHealthInsurance string `json:"is_health_insurance","type:boolean"`
	Summary           string `json:"summary","type:text"`
	AdvancedEquipment string `json:"advanced_equipment","type:text"`
	BusRoute          string `json:"bus_route","type:varchar(255)"`
	MedicalScore      string `json:"medical_score","type:int(3)"`
	PriceScore        string `json:"price_score","type:int(3)"`
	ServiceScore      int `json:"service_score","type:int(3)"`
	IsPrivate         string `json:"is_private","type:boolean"`
	Honor             string `json:"honor",type:text;`
}

func (Hospital) TableName() string {
	return "jk_hospital"
}
